package com.scalar.chiptrack.adaptor.ikanos.silterra;

import Acme.HtmlObserver;

import java.net.URL;

/**
 * Created by IntelliJ IDEA.
 * User: Sudhakar
 * Date: Aug 30, 2006
 * Time: 4:55:32 AM
 */
public class SilterraHtmlObserver implements HtmlObserver {
    private String m_downloadURL = null;

    public String getDownloadURL() {
        return m_downloadURL;
    }

    public void setDownloadURL(String downloadURL) {
        this.m_downloadURL = downloadURL;
    }

    public void gotAHREF(String urlString, URL contextUrl, Object clientData) {

        if (urlString == null) return;
        
        if (urlString.indexOf("reportID=ikanoswip") != -1) {
             m_downloadURL = urlString;

        }
    }

    public void gotAREAHREF(String urlString, URL contextUrl, Object clientData) {
    }

    public void gotBASEHREF(String urlString, URL contextUrl, Object clientData) {
    }

    public void gotBODYBACKGROUND(String urlString, URL contextUrl, Object clientData) {
    }

    public void gotFRAMESRC(String urlString, URL contextUrl, Object clientData) {
    }

    public void gotIMGSRC(String urlString, URL contextUrl, Object clientData) {
    }

    public void gotLINKHREF(String urlString, URL contextUrl, Object clientData) {
    }

}
